package com.youxin.cpcenter.dao;

import java.util.List;

import com.youxin.busfoundation.bean.leads.RequestPoolBean;
import com.youxin.busfoundation.model.EntCluePoolBean;
import com.youxin.cpcenter.bean.CluePoolCompanyMemberBean;
import com.youxin.cpcenter.bean.CluePoolCompanyTotalBean;
import com.youxin.cpcenter.bean.RequestPoolCompanyTotalBean;
import org.apache.ibatis.annotations.Mapper;

import com.youxin.busfoundation.bean.leads.LeadsStatTotalBean;
import com.youxin.busfoundation.bean.leads.QueryLeadsViewBean;
import com.youxin.busfoundation.bean.leads.QueryStatBean;
import com.youxin.busfoundation.bean.leads.RequestLeadsPoolBean;
import com.youxin.cpcenter.model.TbEntCluePoolCompany;

@Mapper
public interface TbEntCluePoolCompanyMapper {
	
    int deleteByPrimaryKey(Long id);

    int insert(TbEntCluePoolCompany record);

    int insertSelective(TbEntCluePoolCompany record);

    TbEntCluePoolCompany selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TbEntCluePoolCompany record);

    int updateByPrimaryKey(TbEntCluePoolCompany record);
    
    List<EntCluePoolBean> select(RequestLeadsPoolBean bean);

    int selectByFollowIdAndComUid(RequestPoolBean bean);

    TbEntCluePoolCompany selectLastRecordByComUid(String companyUid);

    List<CluePoolCompanyMemberBean> selectMemberByComUid(String companyUid);

    List<CluePoolCompanyTotalBean> total(RequestPoolCompanyTotalBean bean);
    
    List<LeadsStatTotalBean> queryStat(QueryStatBean bean);
    /**
     * 查看线索的跟进状态
     * @description 
     * @param bean
     * @return
     */
    List<TbEntCluePoolCompany> selectByEntMemberIdLeads(QueryLeadsViewBean bean); 
    
    List<TbEntCluePoolCompany> selectByEntIdentifyIdLeads(QueryLeadsViewBean bean); 

}